package com.battle.pojo.vo.warCaseStudy;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.battle.pojo.converter.StringListConverter;
import com.battle.pojo.enums.StudyStatusEnum;
import com.battle.pojo.param.warCaseStudy.CreateWarCaseStudyParam;
import jakarta.persistence.Column;
import jakarta.persistence.Convert;
import lombok.Data;
import com.battle.pojo.param.warCaseStudy.EditWarCaseStudyParam;

import java.util.List;

/**
* 【描 述】：获取战例研讨
* 【环 境】：J2SE 17
* 【详 细】：
*
*/
@Data
public class GetWarCaseStudyVo extends CreateWarCaseStudyParam{
    /**
     * 状态：0进行中 1已结束
     */
    @Column()
    private StudyStatusEnum status;


    private Long id;


    /**
     * 研讨成果
     */
    @Column(length = 255)
    private String result;

    /**
     * 研讨成果照片
     */
    @Column(columnDefinition = "varchar(500)")
    @Convert(converter = StringListConverter.class)
    @TableField(value = "result_picture", typeHandler = JacksonTypeHandler.class)
    private List<String> resultPicture;
}